package com.zzyy.study.controller;

import com.zzyy.study.entities.User;
import com.zzyy.study.service.UserService;
import com.zzyy.study.service.UserTXService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther zzyy
 * @create 2024-07-03 15:09
 */
@RestController
public class UserTXController
{

    @Resource(name = "userTXServiceA")
    private UserTXService userTXService;

    @PostMapping(value = "/user/addtx")
    public boolean addtx(@RequestBody User user)
    {
        return userTXService.addtx(user);
    }
}
